/********************************************************************************
 *      Copyright:  (C) 2025 LingYun<iot25@lingyun>
 *                  All rights reserved.
 *
 *       Filename:  sqlite.h
 *    Description:  This file 
 *
 *        Version:  1.0.0(24/04/25)
 *         Author:  LingYun <iot25@lingyun>
 *      ChangeLog:  1, Release initial version on "24/04/25 15:13:46"
 *                 
 ********************************************************************************/

#ifndef  _SQLITE_H_
#define  _SQLITE_H_


#include "main.h"

#include <arpa/inet.h>
#include <errno.h>
#include <unistd.h>
#include <getopt.h>
#include <stdlib.h>


int init_database(client_ctx_t *ctx);
int get_temperature(float *temp);
int report_temperature(client_ctx_t *ctx, float temp);
int store_temperature(client_ctx_t *ctx, float temp, time_t timestamp);
int report_stored_data(client_ctx_t *ctx);


#endif

